#ifndef _GUI_LOADPROGRAMWND_H
#define _GUI_LOADPROGRAMWND_H

#include <QWidget>
#include "ui_loadprogramwnd.h"

class QFileSystemModel;
class QModelIndex;
class SysController;

class LoadProgramWnd : public QWidget {
	Q_OBJECT

public:
	LoadProgramWnd(QWidget *parent = 0);
	~LoadProgramWnd();

private slots:
	void pageScrolled();
	void fileSelected(const QModelIndex& index);
	void wndShouldReturn();

private:
	QString getSelectedFileName();

	Ui_LoadProgramWnd ui;
	QFileSystemModel *fsModel;

	SysController *sys_;
};

#endif // _GUI_LOADPROGRAMWND_H
